import request from '@/utils/request'

const Api = {
    proList: '/boss/message/pro/list',
    msgList: '/boss/project/message/listByPage',
    unRead: '/boss/project/message/badge',
    updateMessage: '/boss/project/message/update'
}

export function getProList (parameter) {
  return request({
    url: Api.proList,
    method: 'post',
    data: parameter
  })
}

export function getMessageList (parameter) {
  return request({
    url: Api.msgList,
    method: 'post',
    data: parameter
  })
}

export function getUnread (parameter) {
  return request({
    url: Api.unRead,
    method: 'post',
    data: parameter
  })
}

export function updateMessage (parameter) {
  return request({
    url: Api.updateMessage,
    method: 'post',
    data: parameter
  })
}
